package com.fushenlan.epidemicControl.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.po
 * @VERSION 1.0
 * 居民信息表实体，对应表inhabitant_info
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class InhabitantInfoDto implements Serializable {

    /**
     * 表主键
     */
    private Long id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", name = "userName")
    private String userName;

    /**
     * 证件类型
     */
    @ApiModelProperty(value = "证件类型", name = "identifyType")
    private Integer identifyType;

    /**
     * 证件号码
     */
    @ApiModelProperty(value = "证件号码", name = "identifyNo")
    private String identifyNo;

    /**
     * 手机号码
     */
    private String phoneNumber;


    /**
     * 注册状态   1 是  2 否   默认是2
     */
    private Integer registered;

    /**
     * 所属居委会id
     */
    @ApiModelProperty(value = "所属居委", name = "neighborhoodId")
    private Integer neighborhoodId;

    /**
     * 小区id
     */
    @ApiModelProperty(value = "楼栋表id level = 1", name = "residentialId")
    private Integer residentialId;

    /**
     * 所属楼层
     */
    @ApiModelProperty(value = "楼栋表id level = 2", name = "buildingId")
    private Integer buildingId;

    /**
     * 所属房间
     */
    @ApiModelProperty(value = "楼栋表id level = 3", name = "houseId")
    private Integer houseId;

    /**
     *  数据来源  1 pc 2 app
     */
    private Integer sourceChannel;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    private Integer familyId;

    private String communityName;

}
